package com.camel.chart.utils;

import com.camel.chart.func.UdpClient;

import java.util.Arrays;

public class Test {

    public static void main(String[] args) {
        byte[] ints = new byte[3];
        for (byte j = 0; j < ints.length; j++) {
            ints[j] = j;
        }

        byte[] bytes = Arrays.copyOf(ints, 10);
        for (byte aByte : bytes) {
            System.out.println(aByte);
        }

        System.out.println("===================");


        byte[] ints1 = new byte[4];
        for (byte j = 0; j < ints1.length; j++) {
            ints1[j] = j;
        }

        for (byte anInt : ints) {
            System.out.println(anInt);
        }
        System.out.println("-----------");
        for (byte b : ints1) {
            System.out.println(b);
        }
        System.out.println("==================");

        byte[] concatenate = UdpClient.concatenate(ints, ints1);
        for (byte b : concatenate) {
            System.out.println(b);
        }


    }
}
